package com.soft.dao;

import com.soft.domain.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IAccountDao {

    //查询所有的账户
    @Select("select * from account")
    List<Account> findAll();

    @Update("update account set money=${money} where id = ${id}")
    void updateMoney(@Param("id") int id, @Param("money") double money);
}
